<template>
  <div>
    <input type="text" v-model.lazy="msg" />
    <p>{{message}}</p>
    <p>{{msg}}</p>
  </div>
</template>

<script>
export default {
  name: "formdata",
  data() {
    return {
      msg: "heello",
      message: "hello"
    };
  },
  watch: {
    msg: function(data) {
      //   if (data == "哈哈") {
      //     console.log(data);
      //   }
      setTimeout(() => {
        this.message = data;
      }, 1000);
    }
  }
};
</script>

<style scoped>

</style>